<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditStopsTimesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_stopsTimesPK_tripId}" for="stopsTimesPK_tripId" />
                    <h:inputText id="stopsTimesPK_tripId" value="#{stopsTimesController.selected.stopsTimesPK.tripId}" title="#{bundle.EditStopsTimesTitle_stopsTimesPK_tripId}" required="true" requiredMessage="#{bundle.EditStopsTimesRequiredMessage_stopsTimesPK_tripId}"/>
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_stopsTimesPK_stopId}" for="stopsTimesPK_stopId" />
                    <h:inputText id="stopsTimesPK_stopId" value="#{stopsTimesController.selected.stopsTimesPK.stopId}" title="#{bundle.EditStopsTimesTitle_stopsTimesPK_stopId}" required="true" requiredMessage="#{bundle.EditStopsTimesRequiredMessage_stopsTimesPK_stopId}"/>
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_arrivalTime}" for="arrivalTime" />
                    <h:inputText id="arrivalTime" value="#{stopsTimesController.selected.arrivalTime}" title="#{bundle.EditStopsTimesTitle_arrivalTime}" required="true" requiredMessage="#{bundle.EditStopsTimesRequiredMessage_arrivalTime}"/>
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_departureTime}" for="departureTime" />
                    <h:inputText id="departureTime" value="#{stopsTimesController.selected.departureTime}" title="#{bundle.EditStopsTimesTitle_departureTime}" required="true" requiredMessage="#{bundle.EditStopsTimesRequiredMessage_departureTime}"/>
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_stopSequence}" for="stopSequence" />
                    <h:inputText id="stopSequence" value="#{stopsTimesController.selected.stopSequence}" title="#{bundle.EditStopsTimesTitle_stopSequence}" required="true" requiredMessage="#{bundle.EditStopsTimesRequiredMessage_stopSequence}"/>
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_stopHeadsign}" for="stopHeadsign" />
                    <h:inputText id="stopHeadsign" value="#{stopsTimesController.selected.stopHeadsign}" title="#{bundle.EditStopsTimesTitle_stopHeadsign}" />
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_pickupType}" for="pickupType" />
                    <h:inputText id="pickupType" value="#{stopsTimesController.selected.pickupType}" title="#{bundle.EditStopsTimesTitle_pickupType}" />
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_dropOffType}" for="dropOffType" />
                    <h:inputText id="dropOffType" value="#{stopsTimesController.selected.dropOffType}" title="#{bundle.EditStopsTimesTitle_dropOffType}" />
                    <h:outputLabel value="#{bundle.EditStopsTimesLabel_shapeDistTraveled}" for="shapeDistTraveled" />
                    <h:inputText id="shapeDistTraveled" value="#{stopsTimesController.selected.shapeDistTraveled}" title="#{bundle.EditStopsTimesTitle_shapeDistTraveled}" />
                </h:panelGrid>
                <h:commandLink action="#{stopsTimesController.update}" value="#{bundle.EditStopsTimesSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditStopsTimesViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{stopsTimesController.prepareList}" value="#{bundle.EditStopsTimesShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditStopsTimesIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
